import { CARTLIST } from './mutations-types'
import { getCartList } from '@/service/get-data'
export default{
  async fetchCartList ({ commit }) {
    const res = await getCartList()
    if (res.data && res.data.resultCode && res.data.resultCode === 2000) {
      commit(CARTLIST, res.data)
    }
  }
}
